//
//  BezierByForward.h
//  client
//
//  Created by DuanHongbo on 15/1/29.
//
//

#ifndef __client__BezierByForward__
#define __client__BezierByForward__

#include <stdio.h>
#include "cocos2d.h"


USING_NS_CC;

class BezierByForward : public BezierBy
{
public:
    /** creates the action */
    static BezierByForward* create(float duration,const ccBezierConfig& c,bool autoHeadOn = false, float initAngle = 0);
    
    // override super
    virtual BezierByForward* clone() const override;
    virtual BezierByForward* reverse() const override;
    
CC_CONSTRUCTOR_ACCESS:
    BezierByForward();
    virtual ~BezierByForward();
    
    /** initializes the action */
    bool initWithDuration(float duration,const ccBezierConfig& c,bool autoHeadOn , float initAngle);
    
    virtual void update(float time) override;
private:
    CC_DISALLOW_COPY_AND_ASSIGN(BezierByForward);
public:
    CC_SYNTHESIZE(bool,m_autoHeadOn, AutoHeadOn);
    CC_SYNTHESIZE(float, m_initAngle, InitAngle);
};
#endif /* defined(__client__BezierByForward__) */
